package com.youlai.system.controller;

import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.system.common.result.PageResult;
import com.youlai.system.enums.LogModuleEnum;
import com.youlai.system.model.entity.HisCareHistory;
import com.youlai.system.model.entity.SysCheckItem;
import com.youlai.system.model.query.CheckItemPageQuery;
import com.youlai.system.model.query.HisCareHistoryQuery;
import com.youlai.system.plugin.syslog.annotation.LogAnnotation;
import com.youlai.system.service.HisCareHistoryService;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

/**
 * @author 蒋镨乐
 * @create 2024/8/28 上午9:38
 */

@Tag(name = "收费查询")
@RestController
@RequestMapping("/api/v1/CareHis")
@RequiredArgsConstructor
public class SysHisCareHistroyController {
    private final HisCareHistoryService HisService;

    @GetMapping("/page")
    public PageResult<HisCareHistory> getHisList( HisCareHistoryQuery query){
        IPage<HisCareHistory> result =  HisService.listPageHistroy(query);
        return PageResult.success(result);
    }
}
